package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.UserDto;
import com.zzyl.vo.UserVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    PageResponse findByPage(UserDto userDto, int pageNum, int pageSize);

    void save(UserDto userDto);

    void update(UserDto userDto);

    UserVo findById(Long userId);

    void updateByStatus(@Param("id")Long id, @Param("status")String status);

    List<UserVo> list(UserDto userDto);

    void resetPassword(Long userId);

    void delete(Long id);
}
